<template>
  <view :style="{height: heightBar + 'px', display: isH5 ? 'none' : 'block'}">
    <view class="box-bg">
      <u-navbar :title="props.title" @leftClick="back" :autoBack="true"></u-navbar>
    </view>
  </view>
</template>

<script setup>
import {defineProps, computed} from 'vue'
import {heightBar} from '../utils/getMenuData'

const back = () => {
  uni.navigateBack()
}
const isH5 = computed(() =>
    !!alert
)
const props = defineProps({
  title: String
})
</script>

<style scoped>
.box-bg {
  width: 100%;
  height: 65px;
  background-color: #F5F5F5;
  background: white;
  z-index: 999;
  position: fixed;
  top: 0;
  left: 0;
}

.u-navbar__content__title.data-v-9d9e7ee2 {
  font-weight: bold;
  font-size: 20px;
  z-index: 999;
}
</style>